#!/usr/bin/env python3
# -*- encoding: utf-8 -*-
'''
@author: yuejl
@application:
@contact: lewyuejian@163.com
@file: models.py
@time: 2021/10/17 0017 23:08
@desc:
'''
from pydantic import BaseModel
from typing import Text, Dict, Union, Any, List

class RequestData(BaseModel):
    case_id: Text
    url: Text = None
    method: Text = None
    headers: Dict[Text, Text] = {}
    cookies: Dict[Text, Text] = {}
    timeout: float = 0
    json_data: Union[Text, Dict[Text, Any]] = None
    #set_global_vars: List[Dict[Text, Text], Text, List] = None
    set_global_vars: List[Dict] = None